package codedef

const (
	ERR_SUCCEED            = 0
	ERR_DATABASE           = 1
	ERR_TOKEN_EXPIRED      = 2
	ERR_ACCOUNT_NOT_EXIST  = 3
	ERR_PASSWORD_NOT_MATCH = 4
	ERR_ACCOUNT_NEED       = 5
	ERR_PASSWORD_NEED      = 6
	ERR_ENCODE             = 7
	ERR_DECODE             = 8

	ERR_REQUEST_INVALID_PARAM  = 10
	ERR_CONTROLLER_OFFLINE     = 11
	ERR_CONTROLLER_FIRM_LATEST = 12
	ERR_CONTROLLER_BUSY        = 13

	ERR_ACCOUNT_TOO_SHORT     = 14
	ERR_ACCOUNT_TOO_LONG      = 15
	ERR_ACCOUNT_ALREADY_EXIST = 16
	ERR_PASSWORD_TOO_SHORT    = 17
	ERR_PASSWORD_TOO_LONG     = 18

	ERR_CONTROLLER_NOT_EXIST = 19

	ERR_CONTROLLER_NO_RESPONSE = 20

	ERR_SHARE_ACCOUNT_NOT_EXIST    = 21
	ERR_SHARE_PERMISSION_NOT_ALLOW = 22
	ERR_SHARE_ACCOUNT_REPEAT       = 23

	ERR_CONTROLLER_LOGIN_ACCOUNT_NOT_MATCH = 58

	ERR_TIMER_NOT_FOUND            = 59
	ERR_TIMER_ADD_BUT_NOT_SCHEDULE = 60

	ERR_TIME_OUT              = 61
	ERR_CONTROLLER_WAS_DELETE = 62

	ERR_RESET_ID_FAILED     = 63
	ERR_SOFT_RESTORE_FAILED = 64
	ERR_EMAIL_NOT_EXIST     = 65

	ERR_ACCOUNT_INCLUDE_SPECIAL_CHARACTER = 66

	ERR_APP_MODULE_SMALL_THEN_MIN_SUPPORT      = 67
	ERR_FIRMWARE_MODULE_SMALL_THEN_MIN_SUPPORT = 68

	ERR_TIMER_INVALID = 69
)
